/**
   File: ChannelAction.java
   Description: 
   Copyright 2004-2009 99Bill Corporation. All rights reserved.
   Date          Author          Changes
   2011-1-11    Vern Zheng	    Create
 */

package cms.channel.action;

import cms.channel.model.ChannelInfo;

import com.opensymphony.xwork2.ActionSupport;

import core.support.page.PageResult;

/**
 * <p>
 * </p>
 * 
 * @author Vern.Zheng
 */

public class ChannelAction extends ActionSupport {

	public static final String LIST = "list";
	public static final String EDIT = "edit";
	public static final String ADD = "add";
	public static final String QUERY = "query";

	private PageResult<ChannelInfo> pageResult;
	private ChannelInfo channel;
	private Long id;
	private Integer pageNum;
	private Integer pageSize;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String add() {
		return ADD;
	}
	
	public String edit() {

		return EDIT;
	}

	public String query() {

		return QUERYPAGE;
	}

	public ChannelInfo getChannel() {
		return channel;
	}

	public void setChannel(ChannelInfo channel) {
		this.channel = channel;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public PageResult<ChannelInfo> getPageResult() {
		return pageResult;
	}

	public void setPageResult(PageResult<ChannelInfo> pageResult) {
		this.pageResult = pageResult;
	}

}
